package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Order;

import java.time.LocalDateTime;

public interface OrderService {
    //用户下单
    void submit(Order order);
    //条件分页查询订单
    Page<Order> findOrderByPage(Integer pageNum, Integer pageSize, String number, LocalDateTime beginTime, LocalDateTime endTime);
    //查询历史订单
    Page<Order> findOrderByUserPage(Integer pageNum, Integer pageSize);
}
